package io.zhengsh.nio.files;

import java.nio.file.Path;
import java.nio.file.Paths;

public class PathDemo1 {


    public static void main(String[] args) {

        // 代码1
        Path projects0 = Paths.get("c:\\SoruceCode\\0.txt");
        // 代码1
        Path projects1 = Paths.get("c:\\SoruceCode", "aproject");
        // 代码2
        Path projects2 = Paths.get("c:\\SoruceCode", "aproject\\a.txt");


        String originalPath = "c:\\SoruceCode\\..\\ss-demo";

        Path path1 = Paths.get(originalPath);
        System.out.println("path1 = " + path1);

        Path path2 = path1.normalize();
        System.out.println("path2 = " + path2);
    }
}
